package com.payment.system.domain;

import com.payment.common.annotation.Excel;
import com.payment.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 订单配送表 sys_shopping_order_shipment
 * 
 * @author payment
 * @date 2019-02-15
 */
public class ShoppingOrderShipment extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private String id;
	/** 订单id */
	private String orderId;
	/** 订单编号 */
	@Excel(name = "订单编号")
	private String orderNumber;
	/** 快递名称 */
	@Excel(name = "快递名称")
	private String freCompanyName;
	/** 快递单号 */
	@Excel(name = "快递单号")
	private String trackingNumber;

	/** 省 */
	@Excel(name = "省")
	private String provinceName;
	/** 市 */
	@Excel(name = "市")
	private String cityName;
	/** 区 */
	@Excel(name = "区")
	private String districtName;
	/** 详细地址 */
	@Excel(name = "详细地址")
	private String userAdress;
	/** 邮编 */
	@Excel(name = "邮编")
	private String userZipcode;

	/** 商户id */
	private String merchantId;
	/** 收货人名称 */
	@Excel(name = "用户名称")
	private String userName;
	/** 收货人手机号 */
	@Excel(name = "联系电话")
	private String userPhone;
	/** 创建时间 */
	@Excel(name = "跟新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/** 发货人 */
	@Excel(name = "发货人")
	private String shipmentName;

	/** 10A 已配送，10B 未配送 */
	@Excel(name = "帐号状态", readConverterExp = "10A=已配送,10B=未配送")
	private String state;
	private Integer del;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setOrderId(String orderId) 
	{
		this.orderId = orderId;
	}

	public String getOrderId() 
	{
		return orderId;
	}
	public void setFreCompanyName(String freCompanyName) 
	{
		this.freCompanyName = freCompanyName;
	}

	public String getFreCompanyName() 
	{
		return freCompanyName;
	}
	public void setTrackingNumber(String trackingNumber) 
	{
		this.trackingNumber = trackingNumber;
	}

	public String getTrackingNumber() 
	{
		return trackingNumber;
	}
	public void setMerchantId(String merchantId) 
	{
		this.merchantId = merchantId;
	}

	public String getMerchantId() 
	{
		return merchantId;
	}
	public void setUserName(String userName) 
	{
		this.userName = userName;
	}

	public String getUserName() 
	{
		return userName;
	}
	public void setUserPhone(String userPhone) 
	{
		this.userPhone = userPhone;
	}

	public String getUserPhone() 
	{
		return userPhone;
	}

	public void setShipmentName(String shipmentName) 
	{
		this.shipmentName = shipmentName;
	}

	public String getShipmentName() 
	{
		return shipmentName;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("freCompanyName", getFreCompanyName())
            .append("trackingNumber", getTrackingNumber())
            .append("merchantId", getMerchantId())
            .append("userName", getUserName())
            .append("userPhone", getUserPhone())
            .append("createTime", getCreateTime())
            .append("shipmentName", getShipmentName())
            .toString();
    }

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Override
	public Date getUpdateTime() {
		return updateTime;
	}

	@Override
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getUserZipcode() {
		return userZipcode;
	}

	public void setUserZipcode(String userZipcode) {
		this.userZipcode = userZipcode;
	}

	public String getUserAdress() {
		return userAdress;
	}

	public void setUserAdress(String userAdress) {
		this.userAdress = userAdress;
	}

	public String getDistrictName() {
		return districtName;
	}

	public void setDistrictName(String districtName) {
		this.districtName = districtName;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}
}
